<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@include file="contextjs.jsp" %>
</head>
<body class="easyui-layout">
	<div data-options="region:'north',border:false" style="height:60px;background:#B3DFDA;overflow: visible;"><font size="20px" color="yellow">JAVA1701/2----专用Demo！请勿盗版！盗版必究！</font></div>
	<div data-options="region:'west'" style="width:150px;overflow:visible;">
		<div class="easyui-accordion" style="width:100%;height:100%;">
			<ul id="list" style="list-style-type: none;margin-left: -32px;">		
			</ul>		
		</div>
	</div>
	<div data-options="region:'center'">
		<iframe scrolling="no"  frameborder="0" name="middle" width="95%" height="95%">请选增左边按钮！</iframe>
	</div>
</body>
<script type="text/javascript">
	//写在了script标签内，没有写在function内部所以是加载页面的时候直接执行
	$.ajax({
		url:"user_UserRoleList.action",//AJAX的访问地址
		success:function(data){//如果访问有返回值，就会进入这个方法，返回值是 functin(后台的返回值)
			var jobj=JSON.parse(data);
			for(var i=0;i<jobj.length;i++){
				var appends="<li><a target=\"middle\" style=\"text-decoration: none;\" href=\""+jobj[i].UrlAction+"\">"+jobj[i].Name+"</a></li>";
				$("#list").append(appends);
			}
		},
		error:function(){}//访问失败 500，404...
	});
	
</script>
</html>